package com.geniusk.system.model.bo.passport;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 用户登陆BO
 */
@Data
public class LoginBO {

    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{5,20}$", message = "用户账号格式不正确")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 验证码
     */
    @Pattern(regexp = "^[a-zA-Z0-9]{4}$", message = "验证码格式不正确")
    private String checkCode;

    /**
     * 验证ID
     */
    private String checkId;
}
